<template>
  <div>
    <div style="flex:1;height100%;width:100%;overflow:auto" class="tableBox">
      <cus-allcard
        style="margin-top: 24px; padding-top: 24px; height: calc(100% - 20px)"
        :showTitle="false"
      >
        <div style="display: flex; justify-content: center">
          <Checkbox-group
            v-model="CheckboxName"
            @on-change="CheckboxNamechange"
          >
            <Checkbox label="伙食费">伙食费</Checkbox>
            <Checkbox label="粮食">粮食</Checkbox>
            <Checkbox label="生活水平">生活水平</Checkbox>
          </Checkbox-group>
        </div>
        <div
          style="
            display: flex;
            overflow: auto;
            height: calc(100% - 20px);
            width: 100%;
            overflow: auto;
          "
        >
          <div
            v-if="CheckboxName.indexOf('伙食费') != -1"
            style="flex-shrink: 0"
          >
            <!-- 伙食费 -->
            <table
              border="1"
              style="
                border-collapse: collapse;
                width: 100%;
                text-align: center;
                width: 440px;
              "
            >
              <thead>
                <tr>
                  <th colSpan="1" style="width: 80px">区分</th>
                  <th colspan="2" style="width: 260px">项目</th>
                  <th colspan="1" style="width: 100px">金额</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td rowspan="9">本月收入</td>
                  <td colspan="2">收报销伙食费</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.bhuoshifei"
                        class="inputNumberWidth"
                        :formatter="
                          (value) =>
                            `${parseFloat(Math.round(value * 100) / 100)}`
                        "
                        @on-change="HsfBysrhjSun()"
                        @blur="HsfBysrhjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">收本单位军官伙食费</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.jiaohuo"
                        class="inputNumberWidth"
                        :formatter="
                          (value) =>
                            `${parseFloat(Math.round(value * 100) / 100)}`
                        "
                        @on-change="HsfBysrhjSun()"
                        @blur="HsfBysrhjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">收军粮差价补贴费</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.bbutie"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfBysrhjSun()"
                        @blur="HsfBysrhjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">收外来人员及家属伙食费</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.wailaijh"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfBysrhjSun()"
                        @blur="HsfBysrhjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>

                <tr>
                  <td rowspan="2">生产收益补贴</td>
                  <td colspan="1">上级补</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.shengchans"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfBysrhjSun()"
                        @blur="HsfBysrhjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="1">自补</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.shengchanz"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfBysrhjSun()"
                        @blur="HsfBysrhjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">其他</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.shouruqita"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfBysrhjSun()"
                        @blur="HsfBysrhjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1"></td>
                </tr>
                <tr>
                  <td colspan="2">合计</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.shouruheji"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>

                <tr>
                  <td rowspan="6">本月支出</td>
                  <td colspan="2">付消耗主食款</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.xhzhushi"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfByzchjSun()"
                        @blur="HsfByzchjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">付消耗副食燃料款</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.xhfushig"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfByzchjSun()"
                        @blur="HsfByzchjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">付外出退伙人员伙食费与军粮差价</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.twaichu"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfByzchjSun()"
                        @blur="HsfByzchjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">其他</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.zhichuqita"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="HsfByzchjSun()"
                        @blur="HsfByzchjSun()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1" align="right"></td>
                </tr>
                <tr>
                  <td colspan="2">合计</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.zhichuheji"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="3">本月节超</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.jiechao"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="oneAllMoneyChange()"
                        @blur="oneAllMoneyChange()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td rowspan="3">累计节超</td>
                  <td colspan="2">上月累计节超</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.sjieyu"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="oneAllMoneyChange()"
                        @blur="oneAllMoneyChange()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">本月累计节超</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.leijijiechao"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="oneAllMoneyChange()"
                        @blur="oneAllMoneyChange()"
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1"></td>
                </tr>
              </tbody>
            </table>
          </div>
          <div style="width:20px;height10px;flex-shrink:0"></div>
          <div v-if="CheckboxName.indexOf('粮食') != -1" style="flex-shrink: 0">
            <!-- 粮食 -->
            <table
              border="1"
              style="
                border-collapse: collapse;
                text-align: center;
                width: 780px;
              "
            >
              <thead>
                <tr>
                  <th colSpan="1" style="width: 80px">区分</th>
                  <th colspan="2" style="width: 200px">项目</th>
                  <th colspan="1" style="width: 100px">小麦粉</th>
                  <th colSpan="1" style="width: 100px">大米</th>
                  <th colspan="1" style="width: 100px">食油</th>
                  <th colspan="1" style="width: 100px">大豆</th>
                  <th colspan="1" style="width: 100px">合计（千克）</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td rowspan="9">本月收入</td>
                  <td colspan="2" rowspan="1">报销粮食</td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.bflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrBxlsHjSun()"
                        @blur="LsBysrBxlsHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.brice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrBxlsHjSun()"
                        @blur="LsBysrBxlsHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.boil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrBxlsHjSun()"
                        @blur="LsBysrBxlsHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.bbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrBxlsHjSun()"
                        @blur="LsBysrBxlsHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.bwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">收生产补助粮</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.sbflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrSscbzlHjSun()"
                        @blur="LsBysrSscbzlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.sbrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrSscbzlHjSun()"
                        @blur="LsBysrSscbzlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.sboil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrSscbzlHjSun()"
                        @blur="LsBysrSscbzlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.sbbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrSscbzlHjSun()"
                        @blur="LsBysrSscbzlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.sbwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">其他</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtsrflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrQtHjSun()"
                        @blur="LsBysrQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtsrrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrQtHjSun()"
                        @blur="LsBysrQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtsroil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrQtHjSun()"
                        @blur="LsBysrQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtsrbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBysrQtHjSun()"
                        @blur="LsBysrQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtsrwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                </tr>
                <tr>
                  <td colspan="2" style="height: 30px"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                  <td colspan="1"></td>
                </tr>
                <tr>
                  <td colspan="2">合计</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hjflour"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hjrice"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hjoil"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hjbean"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hjwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>

                <tr>
                  <td rowspan="4">本月支出</td>
                  <td colspan="2">付伙食消耗粮</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hxflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFhsxhlHjSun()"
                        @blur="LsByzcFhsxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hxrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFhsxhlHjSun()"
                        @blur="LsByzcFhsxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hxoil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFhsxhlHjSun()"
                        @blur="LsByzcFhsxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hxbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFhsxhlHjSun()"
                        @blur="LsByzcFhsxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hxwhole"
                        :disabled="true"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">付自然损耗粮</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.zrflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFzrxhlHjSun()"
                        @blur="LsByzcFzrxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.zrrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFzrxhlHjSun()"
                        @blur="LsByzcFzrxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.zroil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFzrxhlHjSun()"
                        @blur="LsByzcFzrxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.zrbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcFzrxhlHjSun()"
                        @blur="LsByzcFzrxhlHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.zrwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">其他</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtzcflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcQtHjSun()"
                        @blur="LsByzcQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtzcrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcQtHjSun()"
                        @blur="LsByzcQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtzcoil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcQtHjSun()"
                        @blur="LsByzcQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtzcbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByzcQtHjSun()"
                        @blur="LsByzcQtHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.qtzcwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">合计</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hejixiaohaoflour"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hejixiaohaorice"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hejixiaohaooil"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hejixiaohaobean"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.hejixiaohaowhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="3">本月节超</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byjiechaoflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBycjHjHjSun()"
                        @blur="LsBycjHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byjiechaorice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBycjHjHjSun()"
                        @blur="LsBycjHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byjiechaooil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBycjHjHjSun()"
                        @blur="LsBycjHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byjiechaobean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsBycjHjHjSun()"
                        @blur="LsBycjHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byjiechaowhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td rowspan="5">累计节超</td>
                  <td colspan="2">上月累计节超</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.syljjiechaoflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsSyljjcHjHjSun()"
                        @blur="LsSyljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.syljjiechaorice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsSyljjcHjHjSun()"
                        @blur="LsSyljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.syljjiechaooil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsSyljjcHjHjSun()"
                        @blur="LsSyljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.syljjiechaobean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsSyljjcHjHjSun()"
                        @blur="LsSyljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.syljjiechaowhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="2">本月累计节超</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byljjiechaoflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByljjcHjHjSun()"
                        @blur="LsByljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byljjiechaorice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByljjcHjHjSun()"
                        @blur="LsByljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byljjiechaooil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByljjcHjHjSun()"
                        @blur="LsByljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byljjiechaobean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsByljjcHjHjSun()"
                        @blur="LsByljjcHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.byljjiechaowhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td rowspan="3">其中</td>
                  <td rowspan="1" colspan="1">存(欠)上级粮食数</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.cqsjflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsCQsjlssHjHjSun()"
                        @blur="LsCQsjlssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.cqsjrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsCQsjlssHjHjSun()"
                        @blur="LsCQsjlssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.cqsjoil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsCQsjlssHjHjSun()"
                        @blur="LsCQsjlssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.cqsjbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsCQsjlssHjHjSun()"
                        @blur="LsCQsjlssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.cqsjwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td rowspan="1" colspan="1">库存粮食数</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kcxlflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclssHjHjSun()"
                        @blur="LsKclssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kcxlrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclssHjHjSun()"
                        @blur="LsKclssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kcxloil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclssHjHjSun()"
                        @blur="LsKclssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kcxlbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclssHjHjSun()"
                        @blur="LsKclssHjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kcxlwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td rowspan="1" colspan="1">库存粮票数</td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kclmflour"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclpsjHjSun()"
                        @blur="LsKclpsjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kclmrice"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclpsjHjSun()"
                        @blur="LsKclpsjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kclmoil"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclpsjHjSun()"
                        @blur="LsKclpsjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kclmbean"
                        class="inputNumberWidth"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="LsKclpsjHjSun()"
                        @blur="LsKclpsjHjSun()"
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1">
                    <div class="tableInput">
                      <Input-number
                        v-model="dataForm.kclmwhole"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
          <div style="width:20px;height10px;flex-shrink:0"></div>
          <div
            v-if="CheckboxName.indexOf('生活水平') != -1"
            style="flex-shrink: 0"
          >
            <!-- 生活水平 -->
            <table
              border="1"
              style="
                border-collapse: collapse;
                text-align: center;
                width: 760px;
              "
            >
              <thead>
                <tr>
                  <th colSpan="1" style="width: 200px">品名</th>
                  <th colspan="1" style="width: 140px">购买总数(千克)</th>
                  <th colspan="1" style="width: 140px">自产总数(千克)</th>
                  <th colSpan="1" style="width: 140px">合计(千克)</th>
                  <th colspan="1" style="width: 140px">平均每人每天(克)</th>
                </tr>
              </thead>
              <tbody>
                <tr v-for="(item, index) in dataForm.yueFoodList" :key="index">
                  <td colspan="1">
                    <Input
                      v-model="item.foodname"
                      :disabled="true"
                      class="ssss"
                      maxlength="15"
                    ></Input>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="item.buyquantity"
                        class="inputNumberWidth"
                        :disabled="!item.foodname"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="
                          ShspGpmHjSun(
                            item.buyquantity,
                            item.zichanquantity,
                            index
                          )
                        "
                        @blur="
                          ShspGpmHjSun(
                            item.buyquantity,
                            item.zichanquantity,
                            index
                          )
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="item.zichanquantity"
                        class="inputNumberWidth"
                        :disabled="!item.foodname"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                        @on-change="
                          ShspGpmHjSun(
                            item.buyquantity,
                            item.zichanquantity,
                            index
                          )
                        "
                        @blur="
                          ShspGpmHjSun(
                            item.buyquantity,
                            item.zichanquantity,
                            index
                          )
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="item.hejiquantity"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                  <td colspan="1" align="right">
                    <div class="tableInput">
                      <Input-number
                        v-model="item.average"
                        class="inputNumberWidth"
                        :disabled="true"
                        :formatter="
                          (value) => formatNumber(value)
                        "
                      ></Input-number>
                    </div>
                  </td>
                </tr>

                <tr>
                  <td colspan="5" align="left">
                    <div style="display: flex; align-items: center">
                      <div class="tableInput">
                        <Input-number
                          v-model="dataForm.areatype"
                          style="width: 60px"
                          :formatter="
                            (value) => formatNumber(value)
                          "
                          @on-change="oneAllMoneyChange()"
                          @blur="oneAllMoneyChange()"
                        ></Input-number>
                      </div>
                      类区
                      <div class="tableInput">
                        <Input-number
                          v-model="dataForm.zaobie"
                          style="width: 60px"
                          :formatter="
                            (value) => formatNumber(value)
                          "
                          @on-change="oneAllMoneyChange()"
                          @blur="oneAllMoneyChange()"
                        ></Input-number>
                      </div>
                      类灶每人每天伙食费：
                      <div class="tableInput">
                        <Input-number
                          v-model="dataForm.huoshistandard"
                          style="width: 120px"
                          :formatter="
                            (value) => formatNumber(value)
                          "
                          @on-change="ShspMrmthsf()"
                          @blur="ShspMrmthsf()"
                        ></Input-number>
                      </div>
                      元,购粮补贴：
                      <div class="tableInput">
                        <Input-number
                          v-model="dataForm.provisionDifference"
                          style="width: 120px"
                          :formatter="
                            (value) => formatNumber(value)
                          "
                          @on-change="ShspGlbt()"
                          @blur="ShspGlbt()"
                        ></Input-number>
                      </div>
                      元
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="5" align="left">
                    <div style="display: flex; align-items: center">
                      实际就餐天数：
                      <div class="tableInput">
                        <Input-number
                          v-model="dataForm.realjiucantianshu"
                          style="width: 80px"
                          :formatter="
                            (value) => formatNumber(value)
                          "
                          @on-change="ShspSjjcts()"
                          @blur="ShspSjjcts()"
                        ></Input-number>
                      </div>
                      天
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="5" align="left">
                    <div style="display: flex; align-items: center">
                      每人每天实际开支伙食费：
                      <div class="tableInput">
                        <Input-number
                          v-model="dataForm.realkaizhihuoshi"
                          style="width: 120px"
                          :disabled="true"
                          :formatter="
                            (value) => formatNumber(value)
                          "
                        ></Input-number>
                      </div>
                      元
                    </div>
                  </td>
                </tr>
                <tr>
                  <td colspan="5" align="left">
                    <div style="display: flex; align-items: center">
                      每人每天实际超过标准：
                      <div class="tableInput">
                        <Input-number
                          v-model="dataForm.reallowerstandard"
                          style="width: 120px"
                          :disabled="true"
                          :formatter="
                            (value) => formatNumber(value)
                          "
                        ></Input-number>
                      </div>
                      元
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </cus-allcard>
    </div>
  </div>
</template>
<script>
import {
  getAccountBookByUserId,
  getYueHuoShiAndYueFood,
  getMealsPublishDetail,
} from "@/api/businessAccountingApi/essentialInformationApi";

export default {
  data() {
    return {
      CheckboxName: ["伙食费", "粮食"],
      dataForm: {
        accountbookId: null, //账簿ID
        yuehuoshiId: null, //月伙食公布表id(添加时不传)
        tabledate: null, //日期(格式:yyyy-MM-dd)
        operator: null, //提交人
        operatorid: null, //提交人ID
        tablename: null, //表名
        bhuoshifei: null, //收报销伙食费
        jiaohuo: null, //收本单位军官交伙
        bbutie: null, //收军粮差价补贴费
        wailaijh: null, //收外来人员及家属伙食费
        shengchans: null, //生产收益补贴(上级补)
        shengchanz: null, //生产收益补贴(自补)
        shouruqita: null, //其他收入
        shouruheji: null, //本月收入合计
        xhzhushi: null, //付消耗主食款
        xhfushig: null, //付消耗副食燃料款
        twaichu: null, //付外出退伙人员伙食费与军粮差价
        zhichuqita: null, //其他支出
        zhichuheji: null, //本月支出合计
        jiechao: null, //本月节超
        sjieyu: null, //上月账面累计结余
        leijijiechao: null, //本月累计节超

        bflour: null, //报销小麦
        brice: null, //报销大米
        boil: null, //报销食油
        bbean: null, //报销大豆
        bwhole: null, //报销小计

        sbflour: null, //生产补助小麦
        sbrice: null, //生产补助大米
        sboil: null, //生产补助食油
        sbbean: null, //生产补助大豆
        sbwhole: null, //生产补助小计

        qtsrflour: null, //其他收入小麦
        qtsrrice: null, //其他收入大米
        qtsroil: null, //其他收入食油
        qtsrbean: null, //其他收入大豆
        qtsrwhole: null, //其他收入小计

        hjflour: null, //合计小麦
        hjrice: null, //合计大米
        hjoil: null, //合计食油
        hjbean: null, //合计大豆
        hjwhole: null, //合计小计

        hxflour: null, //伙食消耗小麦
        hxrice: null, //伙食消耗大米
        hxoil: null, //伙食消耗食油
        hxbean: null, //伙食消耗大豆
        hxwhole: null, //伙食消耗小计

        zrflour: null, //自然消耗小麦
        zrrice: null, //自然消耗大米
        zroil: null, //自然消耗食油
        zrbean: null, //自然消耗大豆
        zrwhole: null, //自然消耗小计

        qtzcflour: null, //其他支出小麦
        qtzcrice: null, //其他支出大米
        qtzcoil: null, //其他支出食油
        qtzcbean: null, //其他支出大豆
        qtzcwhole: null, //其他支出小计

        hejixiaohaoflour: null, //合计消耗小麦
        hejixiaohaorice: null, //合计消耗大米
        hejixiaohaooil: null, //合计消耗食油
        hejixiaohaobean: null, //合计消耗大豆
        hejixiaohaowhole: null, //合计消消耗小计

        byjiechaoflour: null, //本月节超小麦
        byjiechaorice: null, //本月节超大米
        byjiechaooil: null, //本月节超食油
        byjiechaobean: null, //本月节超大豆
        byjiechaowhole: null, //本月节超小计

        syljjiechaoflour: null, //上月累计节超小麦
        syljjiechaorice: null, //上月累计节超大米
        syljjiechaooil: null, //上月累计节超食油
        syljjiechaobean: null, //上月累计节超大豆
        syljjiechaowhole: null, //上月累计节超小计

        byljjiechaoflour: null, //本月累计节超小麦
        byljjiechaorice: null, //本月累计节超大米
        byljjiechaooil: null, //本月累计节超食油
        byljjiechaobean: null, //本月累计节超大豆
        byljjiechaowhole: null, //本月累计节超小计

        cqsjflour: null, //存(欠)上级小麦
        cqsjrice: null, //存(欠)上级大米
        cqsjoil: null, //存(欠)上级食油
        cqsjbean: null, //存(欠)上级大豆
        cqsjwhole: null, //存(欠)上级小计

        kcxlflour: null, //库存现粮小麦
        kcxlrice: null, //库存现粮大米
        kcxloil: null, //库存现粮食油
        kcxlbean: null, //库存现粮大豆
        kcxlwhole: null, //库存现粮小计

        kclmflour: null, //库存粮秣小麦
        kclmrice: null, //库存粮秣大米
        kclmoil: null, //库存粮秣食油
        kclmbean: null, //库存粮秣大豆
        kclmwhole: null, //库存粮秣小计
        areatype: null, //类区
        zaobie: null, //灶别
        huoshistandard: null, //伙食费标准(元)
        provisionDifference: null, //购粮补贴
        realjiucantianshu: null, //实际就餐天数
        realkaizhihuoshi: null, //实际开支伙食费
        reallowerstandard: null, //实际低于标准
        yueFoodList: [],
      },
      form: {
        loading: false,
        name: "",
        startTime: "",
        endTime: "",
      },
      selectForm: {},
    };
  },
  mounted() {},
  methods: {
    formatNumber(value) {
			return parseFloat(Math.floor(this.$math.multiply(value, 100)) / 100)
		},
    getYueHuoShiAndYueFoodApi(data) {
      this.form.loading = true;
      return new Promise((resolve) => {
        getMealsPublishDetail({
          localId: data.localId, //账簿id
          unitCode: data.unitCode,
        }).then((res) => {
          this.form.loading = false;
          if (res.code === 1) {
            this.selectForm.yuehuoshiId = res.data.yuehuoshiId; //月伙食公布表id
            this.dataForm.accountbookId = res.data.accountbookId; //账簿ID
            this.dataForm.yuehuoshiId = res.data.yuehuoshiId; //月伙食公布表id(添加时不传)

            this.dataForm.operator = res.data.operator; //提交人
            this.dataForm.operatorid = res.data.operatorid; //提交人ID
            this.dataForm.tablename = res.data.tablename;
            this.dataForm.bhuoshifei = res.data.bhuoshifei; //收报销伙食费
            this.dataForm.jiaohuo = res.data.jiaohuo; //收本单位军官交伙
            this.dataForm.bbutie = res.data.bbutie; //收军粮差价补贴费
            this.dataForm.wailaijh = res.data.wailaijh; //收外来人员及家属伙食费
            this.dataForm.shengchans = res.data.shengchans; //生产收益补贴(上级补)
            this.dataForm.shengchanz = res.data.shengchanz; //生产收益补贴(自补)
            this.dataForm.shouruqita = res.data.shouruqita; //其他收入
            this.dataForm.shouruheji = res.data.shouruheji; //本月收入合计
            this.dataForm.xhzhushi = res.data.xhzhushi; //付消耗主食款
            this.dataForm.xhfushig = res.data.xhfushig; //付消耗副食燃料款
            this.dataForm.twaichu = res.data.twaichu; //付外出退伙人员伙食费与军粮差价
            this.dataForm.zhichuqita = res.data.zhichuqita; //其他支出
            this.dataForm.zhichuheji = res.data.zhichuheji; //本月支出合计
            this.dataForm.jiechao = res.data.jiechao; //本月节超
            this.dataForm.sjieyu = res.data.sjieyu; //上月账面累计结余
            this.dataForm.leijijiechao = res.data.leijijiechao; //本月累计节超
            this.dataForm.bflour = res.data.bflour; //报销小麦
            this.dataForm.brice = res.data.brice; //报销大米
            this.dataForm.boil = res.data.boil; //报销食油
            this.dataForm.bbean = res.data.bbean; //报销大豆
            this.dataForm.bwhole = res.data.bwhole; //报销小计
            this.dataForm.sbflour = res.data.sbflour; //生产补助小麦
            this.dataForm.sbrice = res.data.sbrice; //生产补助大米
            this.dataForm.sboil = res.data.sboil; //生产补助食油
            this.dataForm.sbbean = res.data.sbbean; //生产补助大豆
            this.dataForm.sbwhole = res.data.sbwhole; //生产补助小计
            this.dataForm.qtsrflour = res.data.qtsrflour; //其他收入小麦
            this.dataForm.qtsrrice = res.data.qtsrrice; //其他收入大米
            this.dataForm.qtsroil = res.data.qtsroil; //其他收入食油
            this.dataForm.qtsrbean = res.data.qtsrbean; //其他收入大豆
            this.dataForm.qtsrwhole = res.data.qtsrwhole; //其他收入小计
            this.dataForm.hjflour = res.data.hjflour; //合计小麦
            this.dataForm.hjrice = res.data.hjrice; //合计大米
            this.dataForm.hjoil = res.data.hjoil; //合计食油
            this.dataForm.hjbean = res.data.hjbean; //合计大豆
            this.dataForm.hjwhole = res.data.hjwhole; //合计小计
            this.dataForm.hxflour = res.data.hxflour; //伙食消耗小麦
            this.dataForm.hxrice = res.data.hxrice; //伙食消耗大米
            this.dataForm.hxoil = res.data.hxoil; //伙食消耗食油
            this.dataForm.hxbean = res.data.hxbean; //伙食消耗大豆
            this.dataForm.hxwhole = res.data.hxwhole; //伙食消耗小计
            this.dataForm.zrflour = res.data.zrflour; //自然消耗小麦
            this.dataForm.zrrice = res.data.zrrice; //自然消耗大米
            this.dataForm.zroil = res.data.zroil; //自然消耗食油
            this.dataForm.zrbean = res.data.zrbean; //自然消耗大豆
            this.dataForm.zrwhole = res.data.zrwhole; //自然消耗小计
            this.dataForm.qtzcflour = res.data.qtzcflour; //其他支出小麦
            this.dataForm.qtzcrice = res.data.qtzcrice; //其他支出大米
            this.dataForm.qtzcoil = res.data.qtzcoil; //其他支出食油
            this.dataForm.qtzcbean = res.data.qtzcbean; //其他支出大豆
            this.dataForm.qtzcwhole = res.data.qtzcwhole; //其他支出小计
            this.dataForm.hejixiaohaoflour = res.data.hejixiaohaoflour; //合计消耗小麦
            this.dataForm.hejixiaohaorice = res.data.hejixiaohaorice; //合计消耗大米
            this.dataForm.hejixiaohaooil = res.data.hejixiaohaooil; //合计消耗食油
            this.dataForm.hejixiaohaobean = res.data.hejixiaohaobean; //合计消耗大豆
            this.dataForm.hejixiaohaowhole = res.data.hejixiaohaowhole; //合计消消耗小计
            this.dataForm.byjiechaoflour = res.data.byjiechaoflour; //本月节超小麦
            this.dataForm.byjiechaorice = res.data.byjiechaorice; //本月节超大米
            this.dataForm.byjiechaooil = res.data.byjiechaooil; //本月节超食油
            this.dataForm.byjiechaobean = res.data.byjiechaobean; //本月节超大豆
            this.dataForm.byjiechaowhole = res.data.byjiechaowhole; //本月节超小计
            this.dataForm.syljjiechaoflour = res.data.syljjiechaoflour; //上月累计节超小麦
            this.dataForm.syljjiechaorice = res.data.syljjiechaorice; //上月累计节超大米
            this.dataForm.syljjiechaooil = res.data.syljjiechaooil; //上月累计节超食油
            this.dataForm.syljjiechaobean = res.data.syljjiechaobean; //上月累计节超大豆
            this.dataForm.syljjiechaowhole = res.data.syljjiechaowhole; //上月累计节超小计
            this.dataForm.byljjiechaoflour = res.data.byljjiechaoflour; //本月累计节超小麦
            this.dataForm.byljjiechaorice = res.data.byljjiechaorice; //本月累计节超大米
            this.dataForm.byljjiechaooil = res.data.byljjiechaooil; //本月累计节超食油
            this.dataForm.byljjiechaobean = res.data.byljjiechaobean; //本月累计节超大豆
            this.dataForm.byljjiechaowhole = res.data.byljjiechaowhole; //本月累计节超小计
            this.dataForm.cqsjflour = res.data.cqsjflour; //存(欠)上级小麦
            this.dataForm.cqsjrice = res.data.cqsjrice; //存(欠)上级大米
            this.dataForm.cqsjoil = res.data.cqsjoil; //存(欠)上级食油
            this.dataForm.cqsjbean = res.data.cqsjbean; //存(欠)上级大豆
            this.dataForm.cqsjwhole = res.data.cqsjwhole; //存(欠)上级小计
            this.dataForm.kcxlflour = res.data.kcxlflour; //库存现粮小麦
            this.dataForm.kcxlrice = res.data.kcxlrice; //库存现粮大米
            this.dataForm.kcxloil = res.data.kcxloil; //库存现粮食油
            this.dataForm.kcxlbean = res.data.kcxlbean; //库存现粮大豆
            this.dataForm.kcxlwhole = res.data.kcxlwhole; //库存现粮小计
            this.dataForm.kclmflour = res.data.kclmflour; //库存粮秣小麦
            this.dataForm.kclmrice = res.data.kclmrice; //库存粮秣大米
            this.dataForm.kclmoil = res.data.kclmoil; //库存粮秣食油
            this.dataForm.kclmbean = res.data.kclmbean; //库存粮秣大豆
            this.dataForm.kclmwhole = res.data.kclmwhole; //库存粮秣小计
            this.dataForm.areatype = res.data.areatype; //类区
            this.dataForm.zaobie = res.data.zaobie; //灶别
            this.dataForm.huoshistandard = res.data.huoshistandard; //伙食费标准(元)
            this.dataForm.provisionDifference = res.data.provisionDifference; //购粮补贴
            this.dataForm.realjiucantianshu = res.data.realjiucantianshu; //实际就餐天数
            this.dataForm.realkaizhihuoshi = res.data.realkaizhihuoshi; //实际开支伙食费
            this.dataForm.reallowerstandard = res.data.reallowerstandard; //实际低于标准
            this.dataForm.yueFoodList = res.data.yueFoodList;
            resolve();
          } else {
            this.$Message.error(res.retMsg);
          }
        });
      });
    },
    CheckboxNamechange(data) {
      if (data.includes("生活水平")) {
        this.$emit("changeDragWidth");
      }
    },
    HsfBysrhjSun() {
      this.dataForm.shouruheji =
        this.dataForm.bhuoshifei +
        this.dataForm.jiaohuo +
        this.dataForm.bbutie +
        this.dataForm.wailaijh +
        this.dataForm.shengchans +
        this.dataForm.shengchanz +
        this.dataForm.shouruqita;
      this.dataForm.jiechao =
        this.dataForm.shouruheji - this.dataForm.zhichuheji;
      this.dataForm.leijijiechao = this.dataForm.jiechao + this.dataForm.sjieyu;
    },
    show(data) {
      this.getYueHuoShiAndYueFoodApi(data);
    },
  },
};
</script>
<style lang="less" scoped>
.inputNumberWidth {
  width: 100%;
}
/deep/.ivu-input {
  height: 40px !important;
}
/deep/ .ivu-input[disabled] {
  color: #666 !important;
}
</style>
